{extend name="public/base"/}
{block name="style"}
{/block}
{block name="content"}
    <div class="data-list" data-url="{:url('index')}">
        <form class="layui-form inline-form">
            <div class="pull-left">
                <div class="layui-inline">
                    <input type="text" name="consignee" placeholder="收件人" class="layui-input">
                </div>
                <div class="layui-inline">
                    <input type="text" placeholder="进入黑名单日期" name="black_date" class="layui-input laydate-range">
                </div>
                <div class="layui-inline">
                    <select name="risk_num" lay-filter="data-list" lay-search>
                        <option value="">风险等级</option>
                        {foreach $risk_num as $r}
                        <option {if isset($black) && $black.risk_num == $r}selected{/if} value="{$r}">{$r}</option>
                        {/foreach}
                    </select>
                </div>
                <div class="layui-inline">
                    <select name="platform_name" lay-filter="data-list" lay-search>
                        <option value="">平台</option>
                        {foreach $platform as $p}
                        <option value="{$p.name}">{$p.name}</option>
                        {/foreach}
                    </select>
                </div>
                <div class="layui-inline">
                    <select name="buyer_country_code" lay-filter="data-list" lay-search>
                        <option value="">国家</option>
                        {foreach $country as $c}
                        <option value="{$c.code_two}">{$c.name_ch}</option>
                        {/foreach}
                    </select>
                </div>
                <div class="layui-inline">
                    <button class="layui-btn layui-btn-sm layui-btn-normal search"><i class="layui-icon layui-icon-search"></i></button>
                </div>
            </div>
            <div class="pull-right">
                <div class="layui-inline">
                    <button class="layui-btn layui-btn-normal layui-btn-sm ajax-form" width-form="50%" height-form="80%" title="添加黑名单" data-url="{:url('add')}"><i class="layui-icon layui-icon-add-circle"></i> 新增</button>
                </div>
            </div>
        </form>
        <div class="data">
            <p><i class="fa fa-spinner fa-spin"></i> 加载中...</p>
        </div>
    </div>
{/block}
{block name="script"}
{/block}